while True:
    try:
        n = int(input())
        for i in range(1,n+1):
            spaces = "  "*(n-i+1)
            digits = "*"*i
            print(spaces+digits)
        print("*"*(n+1))
        for i in range(1,n+1):
            spaces = "  "*i
            stars = "*"*(n-i+1)
            print(spaces+stars)
    except:
        break